using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;

public class MainMenuController : MonoBehaviour
{
    public TMP_Text GameTimes;
    public TMP_Text LastScore;

    private void Start()
    {
        GameTimes.text = DataManager.Instance.GameTimes.ToString();
        LastScore.text = DataManager.Instance.LastScore.ToString();
    }

    public void GameStart()
    {
        SceneManager.LoadScene("GameScene");
    }

    public void GameExit()
    {
        #if UNITY_EDITOR
            UnityEditor.EditorApplication.isPlaying = false;
        #else
            Application.Quit();
        #endif
    }
}
